package top.kaoshanji.q1ch06c.services;

import org.springframework.stereotype.Service;
import top.kaoshanji.q1ch06c.model.Comment;

import java.util.logging.Logger;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/29 10:16
 */
@Service
public class CommentService {

    private Logger logger = Logger.getLogger(CommentService.class.getName());

    public String publishComment(Comment comment) {
        logger.info("发布Comment：" + comment.getText());
        return "SUCCESS";
    }

    public void setLogger(Logger logger) {
        this.logger = logger;
    }

}
